<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- saved from url=(0022)http://www.sdwejt.com/ -->
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--?xml version="1.0" encoding="UTF-8" ?-->

    <title>{{$cateRes->name}}_{{config('sys.siteName')}}</title>
    <meta name="keywords" content="{{config('sys.keywords')}}"/>
    <meta name="description" content="{{config('sys.description')}}"/>
    <link href="{{$temps_src}}/images/owl.carousel.min.css" rel="stylesheet">
    <link href="{{$temps_src}}/images/bootstrap.min.css" rel="stylesheet">
    <link href="{{$temps_src}}/images/aos.css" rel="stylesheet">
    <link href="{{$temps_src}}/images/style.css" rel="stylesheet">
    <link href="{{$temps_src}}/images/common.css" rel="stylesheet">
    <link href="{{$temps_src}}/images/custom_style.css" rel="stylesheet">
    <script src="{{$temps_src}}/images/jquery1.9.1.min.js"></script>
    <script src="{{$temps_src}}/images/jquery.superslide.2.1.1.js"></script>
    <script src="{{$temps_src}}/images/common.js"></script><script src="{{$temps_src}}/images/owl.carousel.min.js"></script>
    <script src="{{$temps_src}}/images/bootstrap.min.js"></script>
    <script src="{{$temps_src}}/images/custom_script.js"></script>
    <script src="{{$temps_src}}/images/share.js"></script>
    <link rel="stylesheet" href="{{$temps_src}}/images/share_style0_16.css">
</head>
<body aos-easing="ease-out-back" aos-duration="1000" aos-delay="0">
@include('home.default.header')
<!--幻灯片大图开始-->
<div id="banner_main" aos="fade-up" aos-easing="ease" aos-duration="700" aos-delay="100" class="aos-init aos-animate">

</div>
<!--幻灯片大图结束-->
<div class="submian">
    <div class="container clearfix">
        <div class="sobtitle">
            <s class="ico"></s>您的位置：
            {{$catePos}}
        </div>
        <div class="subleft fl hidden-xs hidden-sm">
            <!--栏目分类开始-->

            <style>
                .comt .first_nav .second_nav{display:none}
                .comt .first_nav:hover .second_nav{display:block}

            </style>
            <div class="lefta bor9">
                <div class="title">
                    <h2>@if(isset($topCateRes)){{$topCateRes->name}} @else {{$cateRes->name}} @endif</h2>
                </div>
                <div class="comt">
                    <ul>
                        @if($sonCateRes != '')
                            @foreach($sonCateRes as $v)
                                @if($v['type'] == 1)
                        <li class="first_nav"><a class="one_child" href="/category/{{$v['id']}}.html" title="{{$v['name']}}">{{$v['name']}}</a>
                                @elseif($v['type'] == 2)
                                    <li class="first_nav"><a class="one_child" href="/list/{{$v['id']}}.html" title="{{$v['name']}}">{{$v['name']}}</a>
                                @elseif($v['type'] == 3)
                                    <li class="first_nav"><a class="one_child" href="/page/{{$v['id']}}.html" title="{{$v['name']}}">{{$v['name']}}</a>
                                @else($v['type'] == 4)
                                    <li class="first_nav"><a class="one_child" href="{{$v['link']}}" title="{{$v['name']}}">{{$v['name']}}</a>
                                @endif
                            <ul class="second_nav">
                                @if($v['children'] != '')
                                    @foreach($v['children'] as $m)
                                        @if($m['type'] == 1)
                                <li><a class="one_child" href="/category/{{$m['id']}}.html" title="" style="padding-left: 45px;line-height: 40px;
    height: 40px;background:none;color: #555!important;">{{$m['name']}}</a></li>
                                        @elseif($m['type'] == 2)
                                            <li><a class="one_child" href="/list/{{$m['id']}}.html" title="" style="padding-left: 45px;line-height: 40px;
height: 40px;background:none;color: #555!important;">{{$m['name']}}</a></li>
                                        @elseif($m['type'] == 3)
                                            <li><a class="one_child" href="/page/{{$m['id']}}.html" title="" style="padding-left: 45px;line-height: 40px;
height: 40px;background:none;color: #555!important;">{{$m['name']}}</a></li>
                                        @else($m['type'] == 4)
                                            <li><a class="one_child" href="{{$m['link']}}" title="" style="padding-left: 45px;line-height: 40px;
height: 40px;background:none;color: #555!important;">{{$m['name']}}</a></li>
                                        @endif
                                    @endforeach
                                @endif
                            </ul>



                        </li>
                            @endforeach
                        @endif

                    </ul>
                </div>
            </div>
            <!--联系我们开始-->
            <div class="leftnews bor9">
                <div class="title">
                    <i>联系我们</i>
                </div>
                <div class="leftcont">
                    <div>
                        <p><b>地址：</b>{{config('sys.address')}}</p>
                        <p><b>电话：</b>{{config('sys.tel')}}</p>
                    </div>
                </div>
            </div>
            <!--联系我们结束-->
        </div>


        <div class="subright fr">
            <!--文章内容开始-->
            <div class="conBox">
                <div class="ArticleTitle">
                    <h1>{{$cateRes->name}}</h1>
                </div>
                <div class="ArticleMessage">

                </div>
                <div id="article" class="ArticleTencont">
                    {!! htmlspecialchars_decode($cateRes->content,ENT_QUOTES) !!}
                    <!--引用百度地图API-->
                        <style type="text/css">
                            html,body{margin:0;padding:0;}
                            .iw_poi_title {color:#CC5522;font-size:14px;font-weight:bold;overflow:hidden;padding-right:13px;white-space:nowrap}
                            .iw_poi_content {font:12px arial,sans-serif;overflow:visible;padding-top:4px;white-space:-moz-pre-wrap;word-wrap:break-word}</style>
                        <script type="text/javascript" src="http://api.map.baidu.com/api?key=&v=1.1&services=true"></script><!--百度地图容器-->
                        <div id="dituContent" style="width:100%;height:650px;border:#ccc solid 1px;">&nbsp;</div>
                        <script type="text/javascript">
                            //创建和初始化地图函数：
                            function initMap(){
                                createMap();//创建地图
                                setMapEvent();//设置地图事件
                                addMapControl();//向地图添加控件
                                addMarker();//向地图中添加marker
                                addRemark();//向地图中添加文字标注
                            }

                            //创建地图函数：
                            function createMap(){
                                var map = new BMap.Map("dituContent");//在百度地图容器中创建一个地图
                                var point = new BMap.Point(110.562363,35.616904);//定义一个中心点坐标
                                map.centerAndZoom(point,15);//设定地图的中心点和坐标并将地图显示在地图容器中
                                window.map = map;//将map变量存储在全局
                            }

                            //地图事件设置函数：
                            function setMapEvent(){
                                map.enableDragging();//启用地图拖拽事件，默认启用(可不写)
                                map.enableScrollWheelZoom();//启用地图滚轮放大缩小
                                map.enableDoubleClickZoom();//启用鼠标双击放大，默认启用(可不写)
                                map.enableKeyboard();//启用键盘上下左右键移动地图
                            }

                            //地图控件添加函数：
                            function addMapControl(){
                                //向地图中添加缩放控件
                                var ctrl_nav = new BMap.NavigationControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_LARGE});
                                map.addControl(ctrl_nav);
                                //向地图中添加缩略图控件
                                var ctrl_ove = new BMap.OverviewMapControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,isOpen:1});
                                map.addControl(ctrl_ove);
                                //向地图中添加比例尺控件
                                var ctrl_sca = new BMap.ScaleControl({anchor:BMAP_ANCHOR_BOTTOM_LEFT});
                                map.addControl(ctrl_sca);
                            }

                            //标注点数组
                            var markerArr = [{title:"东莞市赛德维尔空压设备有限公司",content:"韩城市龙门镇禹门大街  电话：0913-3323688",point:"110.562363|35.616904",isOpen:1,icon:{w:23,h:25,l:46,t:21,x:9,lb:12}}
                            ];
                            //创建marker
                            function addMarker(){
                                for(var i=0;i<markerArr.length;i++){
                                    var json = markerArr[i];
                                    var p0 = json.point.split("|")[0];
                                    var p1 = json.point.split("|")[1];
                                    var point = new BMap.Point(p0,p1);
                                    var iconImg = createIcon(json.icon);
                                    var marker = new BMap.Marker(point,{icon:iconImg});
                                    var iw = createInfoWindow(i);
                                    var label = new BMap.Label(json.title,{"offset":new BMap.Size(json.icon.lb-json.icon.x+10,-20)});
                                    marker.setLabel(label);
                                    map.addOverlay(marker);
                                    label.setStyle({
                                        borderColor:"#808080",
                                        color:"#333",
                                        cursor:"pointer"
                                    });

                                    (function(){
                                        var index = i;
                                        var _iw = createInfoWindow(i);
                                        var _marker = marker;
                                        _marker.addEventListener("click",function(){
                                            this.openInfoWindow(_iw);
                                        });
                                        _iw.addEventListener("open",function(){
                                            _marker.getLabel().hide();
                                        })
                                        _iw.addEventListener("close",function(){
                                            _marker.getLabel().show();
                                        })
                                        label.addEventListener("click",function(){
                                            _marker.openInfoWindow(_iw);
                                        })
                                        if(!!json.isOpen){
                                            label.hide();
                                            _marker.openInfoWindow(_iw);
                                        }
                                    })()
                                }
                            }
                            //创建InfoWindow
                            function createInfoWindow(i){
                                var json = markerArr[i];
                                var iw = new BMap.InfoWindow("<b class='iw_poi_title' title='" + json.title + "'>" + json.title + "</b><div class='iw_poi_content'>"+json.content+"</div>");
                                return iw;
                            }
                            //创建一个Icon
                            function createIcon(json){
                                var icon = new BMap.Icon("http://app.baidu.com/map/images/us_mk_icon.png", new BMap.Size(json.w,json.h),{imageOffset: new BMap.Size(-json.l,-json.t),infoWindowOffset:new BMap.Size(json.lb+5,1),offset:new BMap.Size(json.x,json.h)})
                                return icon;
                            }
                            //文字标注数组
                            var lbPoints = [{point:"110.562363|35.616904",content:"联系我们"}
                            ];
                            //向地图中添加文字标注函数
                            function addRemark(){
                                for(var i=0;i<lbPoints.length;i++){
                                    var json = lbPoints[i];
                                    var p1 = json.point.split("|")[0];
                                    var p2 = json.point.split("|")[1];
                                    var label = new BMap.Label("<div style='padding:2px;'>"+json.content+"</div>",{point:new BMap.Point(p1,p2),offset:new BMap.Size(3,-6)});
                                    map.addOverlay(label);
                                    label.setStyle({borderColor:"#999"});
                                }
                            }

                            initMap();//创建和初始化地图
                        </script>
                </div>
                <div class="clear"></div>


            </div>
            <!--文章内容结束-->

        </div>
    </div>
</div>
@include('home.default.footer')


</body></html>